<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    var score =prompt("请输入测试成绩：");
    if(score>90){
        alert('真棒！奖励你一个苹果。');
    }else{
        alert('去默写笔记吧');
    }
</script>
</body>
</html>